{% extends "learning_logs/base.html" %}

{% block content %}

    {# form块整个都是一个链接，网页链接到本地users/url中的register,然后转到views视图中的register. #}
  <form method="post" action="{% url 'users:register' %}">
    {% csrf_token %}
    {{ form.as_p }}

    <button name="submit">注册</button>
    <input type="hidden" name="next" value="{% url 'learning_logs:index' %}" />
  </form>

{% endblock content %}
